<template>
  <div style="padding: 3px 3px 3px 5px;box-sizing: border-box;border:0px solid red">
    <div class="__main_div" >

      <img :class="{__item_img: true, __img_unselected: !selected, __img_selected: selected}" :src="'../../../public/images/basemaps/' + src" />
      <div :class="{__item_selected: selected}">{{ label }}</div>
    </div>
  </div>
</template>

<script setup lang="js" name="SubMenu_Item">

const propos = defineProps(["src", "label", "selected"]);



</script>

<style scoped lang="less">
.__main_div {

  width: 66px;
  height: auto;
  background-color: rgba(143, 188, 240, 0.3);
  box-sizing: border-box;
  border-radius: 3px;
  border: 2px solid #71b3e902;
  color: #93c8e0;
  text-align: center;

  cursor: pointer;

  padding:1px;

  .__item_img {
    width: 100%;
    background-color: #ffffff;

    box-sizing: border-box;
    border-radius: 5px;

  }


}

.__main_div:hover {
  border: 2px solid #4adbff;
}

.__img_selected{
  opacity: 1;
  border: 2px solid #b4f6ff;
}
.__img_unselected{
  opacity: 0.9;
  border: 2px solid #17525298;
}

.__item_selected{
    color: #c9f9ff;
    font-weight: bold;
}
</style>